package com.ysd.entity;

import java.util.Date;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.GeneratedValue;
import javax.persistence.Id;
import javax.persistence.JoinColumn;
import javax.persistence.ManyToOne;

import org.springframework.format.annotation.DateTimeFormat;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;
@Data
@NoArgsConstructor
@AllArgsConstructor

@Entity
public class Consume_log {
	@Id
	@GeneratedValue
	private Integer id;
	//会员卡号
	@ManyToOne
	@JoinColumn(name = "card_no")
	private Member member;
	//资源编号
	@ManyToOne
	@JoinColumn(name = "read_room_id")
	private Read_room read_room;
	//进入时间
	private String in_time;
	//离开时间
	private String out_time;
	
}
